Distributed deep packet inspection

ABSTRACT

Exemplary methods, apparatuses, and systems receive a copy of or make a copy of one or more packets of a flow of packets between a source and a destination. While or after the one or more packets are forwarded to the destination, the content of the one or more packets is compared to a policy to determine if the flow of packets triggers a policy response. A map of devices within a datacenter cluster of devices is maintained and used to select one or more available devices when packet inspection is distributed.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.13/764,341, filed Feb. 11, 2013, which is hereby incorporated byreference.

FIELD OF THE INVENTION

The various embodiments described herein relate to inspecting packetsbeing transmitted from or received by a device within a network. Inparticular, embodiments relate to deep packet inspection distributedacross a cluster of host devices in a virtual datacenter.

BACKGROUND OF THE INVENTION

Deep packet inspection (DPI) is a network packet filtering approach thatexamines the data section and headers of packets transmitted to or froma network device. DPI is used for advanced network management, such asdata mining, eavesdropping, censorship, compliance, and detection ofviruses, spam, intrusions, or defined criteria to decide whether toallow the packet to pass, route the packet to a different destination,or otherwise save or take note of the packet for statisticalinformation. Physical DPI equipment often sits on the edge of a networkand performs packet inspection before packets are transmitted outside ofthe network or permitted within the network. Inspecting data packets atthe line rate (e.g., tens of gigabytes per second) to avoid packettransmission latency is a daunting challenge that includes customhardware and, therefore, a large capital investment. While some cloudservice providers offer DPI solutions, the round trip delays of remotepacket inspection results in undesirable delays in network traffic.

SUMMARY OF THE INVENTION

Exemplary methods, apparatuses, and systems receive a copy of or makecopy of one or more packets flowing between a source and a destination.While or after the one or more packets are forwarded to the destination,the content of one or more of the copied packets is compared to a policyto determine if the flow of packets triggers a policy response.Exemplary policy responses include resetting the flow of packets ordiverting the flow of packets. In one embodiment, a map of deviceswithin a datacenter cluster of devices is maintained and used to selectone or more available devices when packet inspection is distributed.

Other features and advantages will be apparent from the accompanyingdrawings and from the detailed description.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example and notlimitation in the figures of the accompanying drawings, in which likereferences indicate similar elements, and in which:

FIG. 1 is a flow chart illustrating an exemplary method of deep packetinspection or distributed deep packet inspection;

FIG. 2 illustrates, in block diagram form, an exemplary datacentercluster for distributed deep packet inspection;

FIG. 3 illustrates, in block diagram form, host devices within avirtualized datacenter cluster to perform deep packet inspection;

FIG. 4 is a flow chart illustrating an exemplary method of maintaining amap of devices within a datacenter cluster of devices and distributingdeep packet inspection to one or more available devices based uponavailability; and

FIG. 5 illustrates, in block diagram form, an exemplary processingsystem to perform deep packet inspection or distributed deep packetinspection.

DETAILED DESCRIPTION

Embodiments described herein perform deep packet inspection (DPI). Inparticular, embodiments receive a copy of or make a copy of one or morepackets of a packet flow between a source and a destination. While orafter the one or more packets are forwarded to the destination, thecontent of the one or more copied packets is compared to a policy todetermine if the packet flow triggers a policy response. Performing theDPI while or after the packets are forwarded to the destination reducesat least some packet transmission latency (e.g., latency that wouldoccur if transmission was delayed until DPI was performed). When apolicy response is triggered, the response is carried out on anincomplete packet flow. The amount of packets of the packet flow thatare forwarded to the destination prior to the policy response is oftenbenign.

Embodiments described herein perform distributed DPI. In maintaining amap of available devices within a datacenter cluster, virtualizeddatacenter cluster, or other cluster of devices, embodiments takeadvantage of underutilized computational resources to inspect packetsand trigger policy responses.

FIG. 1 is a flow chart illustrating an exemplary method 100 of deeppacket inspection. At block 105, an embodiment receives one or morepackets of a flow of packets from a source to a destination. In oneembodiment, the received packets are complete or partial copies of thepacket flow. For example, the use of port minoring on a switch providesa copy of network packets flowing between a source and a destination.Alternatively, the actual packet flow is received.

As used herein, a flow of packets or packet flow refers to a sequence ofpackets from a source computer, which may be physical device or avirtual machine, to a destination computer, which may be a physicaldevice, a virtual machine, a multicast group, or a broadcast domain. Thesource and destination computers may be within the same host device,separate devices within the same network, or separate devices withindisparate networks. For example, as will be discussed in more detailbelow, a kernel layer module may receive packets sent to/from a virtualmachine.

At block 110, the embodiment optionally copies one or more of thereceived packet(s). For example, if the received packets are alreadycopied from a packet flow, the embodiment may not make an additionalcopy. Alternatively, when the actual packet flow is received, a partialor complete copy of the received packets may be made.

In one embodiment, the plurality of packets may be sampled at one ormore configurable rates. In one embodiment, the packets are copiedaccording to a stateful inspection by tracking one or more of InternetProtocol (IP) addresses, port numbers, packet sequence numbers, etc.associated with packets. As such, a consecutive sequence of 10, 50, 100,and/or another number of packets is copied.

In one embodiment, overlapping portions of the packet stream are copied.For example, consecutive sequences of the first 10 packets, first 50packets, and first 100 packets of a packet stream may be copied toprovide varying levels of context for the data within the packet flow.In one embodiment, entire packets are copied. Alternatively, only aportion of each the packets is copied.

At block 115, an embodiment optionally forwards a copy of the one ormore received packets to the destination computer. For example, when thereceived one or more packets are copies of the packet flow, the actualpacket flow may have already been forwarded to the destination (e.g., bythe switch that provided port minoring). Alternatively, the actualpacket flow is received and either the original copy or new copy of theone or more packets is forwarded. While or after the one or morereceived packets are forwarded to the destination computer, at block120, an embodiment determines if the one or more packets trigger apolicy response. In an alternate embodiment, packets are stored and notforwarded until the determination if the copied packet(s) trigger apolicy response. Additional packets received prior to making thedetermination may be dropped while waiting for the DPI verdict.

If a policy response is not triggered, DPI continues at block 105. If apolicy response is triggered, at block 125, an embodiment performs saidpolicy response with respect to the flow of packets. In one embodiment,the policy response includes taking an action that has an impact on thepacket flow, such as resetting the packet flow, dropping packets fromthe packet flow, redirecting the packet flow, etc. For example,inspection of the packets may reveal that the packets include data froma prohibited uniform resource locator (URL) and the packet stream isreset/dropped as a part of a triggered policy response. While thecontent of the packet stream may have started to reach the destinationcomputer (e.g., begun loading a webpage associated with the prohibitedURL), once the policy response is triggered, additional packets aredropped and a reset packet is sent to the destination to terminate thestream (e.g., the loading webpage will transition to an error message).An exemplary reset packet, according to the Transmission ControlProtocol (TCP), is a packet that includes the reset (RST) flag set. TheRST flag indicates to the receiving computer that the computer shouldimmediately stop using the TCP connection, the computer should not sendany more packets using the connection's identifying numbers (e.g.,ports), and discard any further packets it receives with headersindicating they belong to that connection.

As described above, one embodiment copies overlapping and differentlysized portions of the packet stream, e.g., consecutive sequences of thefirst 10 packets, first 50 packets, and first 100 packets of a packetstream. In one embodiment, each sequence is inspected to determine if apolicy response is triggered. If any inspection triggers a policyresponse of resetting the packet stream, the embodiment carries out thereset without waiting for a verdict from the inspection of the othercopied portions of the packet stream. In one embodiment, differentcopied portions of the same packet stream trigger different responses,each of which is performed.

In one embodiment, the determination whether the copied packets triggera policy response is performed by a device performing the method 100.Alternatively, the device performing the method 100 receives the verdictof the DPI performed by another device. For example, as will bedescribed in further detail below, the task of performing the inspectionmay be delegated to one or more devices with computational bandwidthwithin a cluster of devices. As described below with reference to FIG.4, the determination at block 120 optionally includes selecting a deviceto perform the inspection, transmitting the copied packets to theselected device, and receiving the result of the inspection from theselected device. Additionally, multiple devices may be selected. In theexample above in which the first 10, 50, and 100 consecutive packets ofa packet stream are separately copied, one selected device may inspectthe first 10 consecutive packets while a different selected deviceinspects the first 50 consecutive packets, and yet another selecteddevice inspects the first 100 consecutive packets.

FIG. 2 illustrates, in block diagram form, an exemplary datacentercluster 200 for distributed deep packet inspection. Clients 205 arecoupled to the cluster servers 210 over a network 215, e.g., an intranetor the Internet. In one embodiment, the cluster servers are furthercoupled to one another over a fast local network 220, such as a FibreChannel or other high-speed wired/optical network. Additionally, thecluster servers 210 are coupled to storage devices 225 (e.g.,implementing a redundant array of independent disks) by way of a storagenetwork 230. In an alternate embodiment, one or more of the networks215, 220, and 230 is omitted. For example, the cluster server network220 and storage network 230 may be combined. Embodiments describedherein may also be implemented in other computer clusters and is notlimited to a server/datacenter cluster 200.

As used herein, a datacenter cluster 200 refers to a group ofindependent servers 210 working together as a single system to providehigh availability of services for clients 205. Each cluster server 210may represent a physical device or a virtual machine within a physicaldevice. For example, two of the illustrated cluster servers 210 may beseparate virtual machines on a single host device. Additionally, two ormore of the cluster of servers 210 may be presented as a single,cohesive unit/system to the clients 205 and provide load balancing andfailover protection in servicing requests from the clients 205. Thecluster of servers 210 receives requests from clients 205 to transmitdata stored within the storage device(s) 225, receive data to be storedwithin the storage device(s) 225, or another network service. Inreceiving and transmitting data or requests for data, one or more of theclients 205 and cluster servers 210 may implement the method 100 of DPI.Furthermore, as will be described below, the cluster servers 210 mayperform distributed DPI.

FIG. 3 illustrates, in block diagram form, host devices 305 within avirtualized datacenter cluster 300 to perform deep packet inspection. Inone embodiment, one or more cluster servers 210 and/or clients 205described above are implemented as a virtual machine within a hostdevice 305. As used herein, a virtual machine refers to a softwareimplementation of a machine (e.g., a computer) that, in turn, executesprograms like a physical machine. In one embodiment, a hypervisor orvirtual machine manager operates at the kernel layer 310 of a host 305,interacting directly with the hardware, and enables the virtualizationof machines in the application layer 315. In an alternate embodiment,the hypervisor/virtual machine manager runs within an operating systemenvironment of 305.

In one embodiment, the kernel layer includes a DPI module 340 to performthe packet inspection method 100 described herein. For example, the DPImodule 340 is coupled to one or more virtual machines 345 and to anetwork interface controller (NIC) 350, e.g., directly or through aswitch 355. In one embodiment the NIC 350 and the switch 355 are avirtual NIC 350 and a virtual switch 355 implemented within the samehost 305. Alternatively, one or both of the NIC 350 and switch 355 are aphysical device or is implemented within a separate device. Packetsoriginating from a virtual machine 345 within the host 305 or in transitto a virtual machine 345 within the host 305 may be copied by the switch355 or DPI module 340 and, in turn, result in the DPI module 340triggering a policy response (e.g., by reassembling packets and/orotherwise determining that copied packets match a policy). In oneembodiment, the switch 355 and/or virtual machines 345 may be tailoredto selectively subject packets associated with particular virtualmachines 345 to DPI. For example, if a host 305 includes two virtualmachines 345, one virtual machine 345 may have packets subjected to DPIwhile packets corresponding to the other virtual machine bypass the DPImodule 340 and are not subjected to DPI. Bypassing the DPI module 340eliminates transmission latency associated with copying packets andenables an administrator to fine-tune a network to the specific needs ofeach virtual machine 345.

In a distributed DPI embodiment, the DPI module 340 cooperates with aDPI agent 360 in the application layer 315 to maintain a map of allhosts that are accessible within the cluster of devices and able toperform DPI. In an alternate embodiment, the DPI agent 360 isimplemented within the kernel layer 310. The DPI agents 360 exchangecomputational resource availability data with one another over acommunications bus 320. Exemplary availability data includes aheartbeat, processor load, queue depth, available memory, etc. In oneembodiment, the communication bus is implemented using a messagingprotocol. For example, a bus manager 325 may manage DPI agentregistration and broker messaging between DPI agents 360 on thecommunication bus 320. The DPI module 340 receives the availability datafrom its corresponding DPI agent 360 and uses said availability data tomaintain a map of all of the hosts and their updated availability toperform DPI.

In one embodiment, the DPI module 340 creates one or more point-to-pointtunnels 330 with DPI modules 340 on other hosts that are available toparticipate in distributed DPI (e.g., clustered devices). For example,using the map of available hosts 305 maintained in cooperation with theDPI agent 360, the DPI module 340 selects another host to perform DPI oncopied packets. Hosts 305 may be selected based upon the availabilitydata and/or according to one or more load-balancing algorithms, such asround robin, weighted queue, etc. The packets are transmitted to theselected host 305 over the DPI tunnel 330 and a verdict of the DPI isreceived from the selected host 305 over the DPI tunnel 330.

In one embodiment the DPI tunnel 330 and the communication bus 320 areimplemented on a single connection between hosts 305, e.g., the clusterservers network 220. Alternatively, the DPI tunnel 300 and thecommunication bus 320 are implemented on separate wired/wirelessconnections between hosts 305.

In one embodiment, the virtualized datacenter cluster 300 furtherincludes a policy manager 335 to distribute and maintain one or morepolicies applied during DPI by the DPI modules 340. The policies aretransmitted to the DPI agents 360 across the communication bus 320,which in turn transmit the policies to the DPI modules 340.

While the implementation of distributed DPI using DPI modules 340 andagents 360 is described in the context of a virtualized datacentercluster 300, the DPI modules 340 and agents 360 may be implementedwithin cluster devices that do not implement virtual machines 345. In anadditional embodiment, a client 205 may implement distributed DPI incooperation with another client 205 or one or more cluster servers 210.For example, a DPI module 340 within a client 205 may forward copiedpackets to a DPI module 340 within a cluster server 210 or withinanother client 205 and receive back a verdict of the DPI.

FIG. 4 is a flow chart illustrating an exemplary method 400 ofmaintaining a map of devices within a datacenter cluster of devices anddistributing DPI to one or more available devices based uponavailability. In one embodiment, the method 400 is performed, at leastin part, as a part of the determination at block 120 in the method 100described with reference to FIG. 1.

At block 405, an embodiment stores a map of clustered devices. Forexample, a DPI module 340 may create or receive and store a map of knowndevices within its cluster.

At block 410, an embodiment sends and/or receives availability data tomaintain maps within the cluster. For example, the DPI agents 360 sendand receive the availability data on behalf of the DPI modules 340. TheDPI modules 340 use the availability data to maintain their respectivestored maps.

At block 415, an embodiment selects a device from the map based upon themaintained availability data. For example, as described above, the DPImodule 340 selects an available host 305 based upon the availabilitydata and/or a load-balancing algorithm.

At block 420, an embodiment transmits copied packets to the selecteddevice. For example, a first DPI module 340 transmits copied packets toa second DPI module 340 in the selected host 305 over the DPI tunnel330.

At block 425, an embodiment receives the result of the selected host'spolicy comparison with the copied packets. Continuing with the exampleabove, the first DPI module 340 receives the DPI verdict from the secondDPI module 340 in the selected host 305 over the DPI tunnel 330.

FIG. 5 illustrates, in block diagram form, an exemplary processingsystem 500 to perform DPI or distributed DPI. Data processing system 500includes one or more microprocessors 505 and connected system components(e.g., multiple connected chips). Alternatively, the data processingsystem 500 is a system on a chip.

The data processing system 500 includes memory 510, which is coupled tothe microprocessor(s) 505. The memory 510 may be used for storing data,metadata, and programs for execution by the microprocessor(s) 505. Thememory 510 may include one or more of volatile and non-volatilememories, such as Random Access Memory (“RAM”), Read Only Memory(“ROM”), a solid state disk (“SSD”), Flash, Phase Change Memory (“PCM”),or other types of data storage. The memory 510 may be internal ordistributed memory.

The data processing system 500 also includes an audio input/outputsubsystem 515 which may include a microphone and/or a speaker for, forexample, playing back music or other audio, receiving voice instructionsto be executed by the microprocessor(s) 505, playing audionotifications, etc. A display controller and display device 520 providesa visual user interface for the user.

The data processing system 500 also includes one or more input or output(“I/O”) devices and interfaces 525, which are provided to allow a userto provide input to, receive output from, and otherwise transfer data toand from the system. These I/O devices 525 may include a mouse, keypador a keyboard, a touch panel or a multi-touch input panel, camera,optical scanner, network interface, modem, other known I/O devices or acombination of such I/O devices. The touch input panel may be a singletouch input panel which is activated with a stylus or a finger or amulti-touch input panel which is activated by one finger or a stylus ormultiple fingers, and the panel is capable of distinguishing between oneor two or three or more touches and is capable of providing inputsderived from those touches to the processing system 500.

The I/O devices and interfaces 525 may also include a port, connectorfor a dock, or a connector for a USB interface, FireWire, Thunderbolt,Ethernet, Fibre Channel, etc. to connect the system 500 with anotherdevice, external component, or a network. Exemplary I/O devices andinterfaces 525 also include wireless transceivers, such as an IEEE802.11 transceiver, an infrared transceiver, a Bluetooth transceiver, awireless cellular telephony transceiver (e.g., 2G, 3G, 4G, etc.), oranother wireless protocol to connect the data processing system 500 withanother device, external component, or a network and receive storedinstructions, data, tokens, etc.

It will be appreciated that one or more buses, may be used tointerconnect the various components shown in FIG. 5.

The data processing system 500 is an exemplary representation of one ormore of the clients 205, cluster servers 210, or hosts 305 describedabove. The data processing system 500 may be a personal computer,tablet-style device, a personal digital assistant (PDA), a cellulartelephone with PDA-like functionality, a Wi-Fi based telephone, ahandheld computer which includes a cellular telephone, a media player,an entertainment system, or devices which combine aspects or functionsof these devices, such as a media player combined with a PDA and acellular telephone in one device. In other embodiments, the dataprocessing system 500 may be a network computer, server, or an embeddedprocessing device within another device or consumer electronic product.As used herein, the terms computer, device, system, processing system,processing device, and “apparatus comprising a processing device” may beused interchangeably with the data processing system 500 and include theabove-listed exemplary embodiments.

It will be appreciated that additional components, not shown, may alsobe part of the system 500, and, in certain embodiments, fewer componentsthan that shown in FIG. 5 may also be used in a data processing system500. It will be apparent from this description that aspects of theinventions may be embodied, at least in part, in software. That is, thecomputer-implemented methods 100 and 400 may be carried out in acomputer system or other data processing system 500 in response to itsprocessor or processing system 505 executing sequences of instructionscontained in a memory, such as memory 510 or other non-transitorymachine-readable storage medium. The software may further be transmittedor received over a network (not shown) via a network interface device525. In various embodiments, hardwired circuitry may be used incombination with the software instructions to implement the presentembodiments. Thus, the techniques are not limited to any specificcombination of hardware circuitry and software, or to any particularsource for the instructions executed by the data processing system 500.

An article of manufacture may be used to store program code providing atleast some of the functionality of the embodiments described above.Additionally, an article of manufacture may be used to store programcode created using at least some of the functionality of the embodimentsdescribed above. An article of manufacture that stores program code maybe embodied as, but is not limited to, one or more memories (e.g., oneor more flash memories, random access memories—static, dynamic, orother), optical disks, CD-ROMs, DVD-ROMs, EPROMs, EEPROMs, magnetic oroptical cards or other type of non-transitory machine-readable mediasuitable for storing electronic instructions. Additionally, embodimentsof the invention may be implemented in, but not limited to, hardware orfirmware utilizing an FPGA, ASIC, a processor, a computer, or a computersystem including a network. Modules and components of hardware orsoftware implementations can be divided or combined withoutsignificantly altering embodiments of the invention.

In the foregoing specification, the invention has been described withreference to specific exemplary embodiments thereof. Various embodimentsand aspects of the invention(s) are described with reference to detailsdiscussed herein, and the accompanying drawings illustrate the variousembodiments. The description above and drawings are illustrative of theinvention and are not to be construed as limiting the invention.Numerous specific details are described to provide a thoroughunderstanding of various embodiments of the present invention. However,in certain instances, well-known or conventional details are notdescribed in order to provide a concise discussion of embodiments of thepresent inventions.

It will be evident that various modifications may be made theretowithout departing from the broader spirit and scope of the invention asset forth in the following claims. For example, the methods describedherein may be performed with fewer or more features/blocks or thefeatures/blocks may be performed in differing orders. Additionally, themethods described herein may be repeated or performed in parallel withone another or in parallel with different instances of the same orsimilar methods.

What is claimed is:
 1. A computer-implemented method, comprising:receiving one or more packets of a flow of packets from a source to adestination; determining, from a comparison of the content of the one ormore packets to a policy while or after the a copy of the one or morepackets are forwarded to the destination, that the flow of packetstriggers a policy response; and performing the policy response inresponse to said determination, wherein the policy response has animpact on the flow of packets.
 2. The computer-implemented method ofclaim 1, wherein the policy response includes resetting the flow ofpackets.
 3. The computer-implemented method of claim 1, wherein thepolicy response includes diverting the flow of packets to a differentdestination.
 4. The computer-implemented method of claim 1, furthercomprising: storing a map of devices within a datacenter cluster ofdevices; maintaining the map of devices to include availability of thedevices; selecting a device from the map based upon the availability ofthe devices; transmitting a copy of the one or more packets to theselected device; and receiving, from the selected device, a result ofthe comparison of the content of the one or more packets to the policy.5. The computer-implemented method of claim 1, further comprising:copying one or more of the one or more received packets; and forwardingthe received packets to the destination, wherein the copying of the oneor more of the one or more received packets includes copying the one ormore received packets at a plurality of configurable sampling rates togenerate a plurality of samples, and wherein the policy is comparedagainst each of the plurality of samples.
 6. The computer-implementedmethod of claim 5, further comprising: transmitting one of the pluralityof samples to a device within a datacenter cluster of devices; andreceiving, from the device, a result of a comparison of the transmittedsample to the policy.
 7. The computer-implemented method of claim 1,wherein the source of the flow of packets is a first virtual machinewithin a host device, and wherein packets from a second virtual machinewithin the host device are transmitted without being copied and comparedagainst the policy.
 8. A non-transitory computer-readable medium storinginstructions, which when executed by a processing device, cause theprocessing device to perform method comprising: receiving one or morepackets of a flow of packets from a source to a destination;determining, from a comparison of the content of the one or more packetsto a policy while or after the one or more packets are forwarded to thedestination, that the flow of packets triggers a policy response; andperforming the policy response in response to said determination,wherein the policy response has an impact on the flow of packets.
 9. Thenon-transitory computer-readable medium of claim 8, wherein the policyresponse includes resetting the flow of packets.
 10. The non-transitorycomputer-readable medium of claim 8, wherein the policy responseincludes diverting the flow of packets to a different destination. 11.The non-transitory computer-readable medium of claim 8, the methodfurther comprising: storing a map of devices within a datacenter clusterof devices; maintaining the map of devices to include availability ofthe devices; selecting a device from the map based upon the availabilityof the devices; transmitting a copy of the one or more packets to theselected device; and receiving, from the selected device, a result ofthe comparison of the content of the one or more packets to the policy.12. The non-transitory computer-readable medium of claim 8, the methodfurther comprising: copying one or more of the one or more receivedpackets; and forwarding the one or more received packets to thedestination, wherein the copying of the one or more of the one or morereceived packets includes copying the one or more received packets at aplurality of configurable sampling rates to generate a plurality ofsamples, and wherein the policy is compared against each of theplurality of samples.
 13. The non-transitory computer-readable medium ofclaim 12, the method further comprising: transmitting one of theplurality of samples to a device within a datacenter cluster of devices;and receiving, from the device, a result of a comparison of thetransmitted sample to the policy.
 14. The non-transitorycomputer-readable medium of claim 8, wherein the source of the flow ofpackets is a first virtual machine within a host device, and whereinpackets from a second virtual machine within the host device aretransmitted without being copied and compared against the policy.
 15. Anapparatus, comprising: a processing device, wherein the processingdevice executes instructions that cause the apparatus to: receive one ormore packets of a flow of packets from a source to a destination;determine, from a comparison of the content of the one or more packetsto a policy while or after the one or more received packets areforwarded to the destination, that the flow of packets triggers a policyresponse; and perform the policy response in response to saiddetermination, wherein the policy response has an impact on the flow ofpackets.
 16. The apparatus of claim 15, wherein the policy responseincludes resetting the flow of packets or diverting the flow of packetsto a different destination.
 17. The apparatus of claim 15, wherein theprocessing device further causes the apparatus to: store a map ofdevices within a datacenter cluster of devices; maintain the map ofdevices to include availability of the devices; select a device from themap based upon the availability of the devices; transmit a copy of theone or more packets to the selected device; and receive, from theselected device, a result of the comparison of the content of the one ormore packets to the policy.
 18. The apparatus of claim 15, wherein theprocessing device further causes the apparatus to: copy one or more ofthe one or more received packets; and forward the one or more receivedpackets to the destination, wherein the copying of the one or more ofthe one or more received packets includes copying the one or morereceived packets at a plurality of configurable sampling rates togenerate a plurality of samples, and wherein the policy is comparedagainst each of the plurality of samples.
 19. The apparatus of claim 18,wherein the processing device further causes the apparatus to: transmitone of the plurality of samples to a device within a datacenter clusterof devices; and receiving, from the device, a result of a comparison ofthe transmitted sample to the policy.
 20. The apparatus of claim 15,wherein the source of the flow of packets is a first virtual machinewithin a host device, and wherein packets from a second virtual machinewithin the host device are transmitted without being copied and comparedagainst the policy.